package com.itheima.service;

import com.itheima.entity.PageResult;
import com.itheima.pojo.User;

import java.util.List;

public interface MyUserService {
    void add(Integer[] roleIds, User user);

    void deleteById(Integer id);

    PageResult findPage(Integer currentPage, Integer pageSize, String queryString);

    User findById(Integer id);

    void edit(Integer[] roleIds, User user);

    User findUserByName(String username);

    List<Integer> findRoleIdsByUserId(Integer id);



   void updatePassword(String username, String password, String newPassword);
}
